const TokenKey = 'token';
const UserNameKey = "username";
const UserId = "userId";

export function getToken() {
  return localStorage.getItem(TokenKey);
}

export function setToken(token) {
  return localStorage.setItem(TokenKey, token);
}

export function removeToken() {
  return localStorage.removeItem(TokenKey);
}

export function getUserId() {
  return localStorage.getItem(UserId);
}

export function setUserId(userId) {
  return localStorage.setItem(UserId, userId);
}

export function removeUserId() {
  return localStorage.removeItem(UserId);
}

export function getUsername() {
  return localStorage.getItem(UserNameKey);
}

export function setUsername(username) {
  return localStorage.setItem(UserNameKey, username);
}

export function removeUsername() {
  return localStorage.removeItem(UserNameKey);
}
